InformIT - Your Online Guide to Tech Reference

Log OutShopping CartView Cart

HomeArticlesBook StoreOnline BooksAuthorsMyInformIT
Home > Articles > Web Development > More Topics... > .NET >

Save

 

Discuss

   

E-mail

Working With ADO.NET Transactions
OCT 25, 2002 By Jason Lefebvre. Article is provided courtesy of Sams.

Contents
1Hour 18: Working with Transactions
2Transactions and ADO.NET
3Transactions with Stored Procedures
4Summary
5Q&A
6Workshop
See Also

This sample chapter is from Sams Teach Yourself ADO.NET in 24 Hours.

Also By This Author
Using the ADO.NET's Built-In ASP.NET List Controls
Binding Data to List Controls with ADO.NET
Using ADO.NET's DataReader and DataAdapter
more…
Related Articles
Connected Operations in ADO.NET
Binding Data to List Controls with ADO.NET
Disconnected Operations Part I: DataSet and DataAdapter
more…
Related Books
Visual Basic® .NET Developer's Guide to ASP .NET, XML and ADO.NET
Database Programming with Visual Basic .NET and ADO.NET: Tips, Tutorials, and Code
more…

 

Advertise With Us

Workshop

These quiz questions are designed to test your knowledge of the material covered in this chapter. The answers to the quiz questions can be found in Appendix A, "Answers to Quizzes."

Quiz

  1. Which method of the SqlTransaction object finalizes a transaction? How is this done in T-SQL?

  2. In ADO.NET, a database transaction is started by using which object?

Exercise

Try to implement a simple financial transaction example, like the one mentioned in the introduction of this hour. Create two database tables, one for bank A and one for bank B. Then create a procedure that copies the checking and savings balance from one bank to another for a given AccountID. Make sure, of course, to use a transaction to perform the transfer.


   
Return to Beginning
Rate This Article
 
How would you rate this article?    

Most Active Comments
 
CommentAuthorRepliesPosted

 Spanning a TRX in varios method calls (may be connections)

peix

0OCT 29, 2002 07:07:04 AM
See All Comments 
 
Make a New Comment

Subject:

Username:


    Change Username

Message: